package com.iscc.maoke.service.impl;

import com.iscc.maoke.dao.UserDAO;
import com.iscc.maoke.dao.impl.UserDAOImpl;
import com.iscc.maoke.domain.User;
import com.iscc.maoke.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDAO userDAO = new UserDAOImpl();

    @Override
    public int addUser(User user) {
        return userDAO.addUser(user);
    }

    @Override
    public User login(String account) {
        return userDAO.login(account);
    }
}
